home *** CD-ROM | disk | FTP | other *** search
- this.startGame = function(what)
- {
- var t = this;
- t.gameType = what;
- t.resetVars();
- t.gamePlay = false;
- t.pauseFunc(false);
- t.launcher.gotoAndStop("show");
- t.gameDisplay.quitBtn.enabled = true;
- var i = 0;
- while(i < t.numLives)
- {
- t.gameDisplay.attachMovie("heart","h" + i,i);
- var n = t.gameDisplay["h" + i];
- n._x = i * 33 + 22;
- n._y = 427;
- i++;
- }
- var i = 0;
- while(i < 12)
- {
- t.gameDisplay.attachMovie("pu","p" + (i + 1),i + 100);
- var n = t.gameDisplay["p" + (i + 1)];
- n._x = i * 40 + 22;
- n._y = 460;
- n._xscale = n._yscale = 120;
- n.graphic.gotoAndStop(i + 1);
- n._alpha = t.initPUAlpha;
- i++;
- }
- if(what == "real")
- {
- var n = 3;
- while(n > 0)
- {
- t.createFly();
- n--;
- }
- }
- t.launcher._y = 150;
- t.launcher.cupid.body.arms.anim.gotoAndStop("done");
- t.launcher.cupid.body._rotation = 0;
- t.launcher.cupid.body.belt._rotation = 0;
- t.launcher.cupid.head._rotation = 0;
- t.launcher.cupid.body.arms._rotation = 0;
- t.launcher.cupid.body.arms2._rotation = 0;
- t.launcher.cupid.legs._rotation = 0;
- if(what == "real")
- {
- t.gameDisplay.countDown.gotoAndPlay("count");
- _quality = t.inGameQuality;
- }
- else
- {
- t.gamePlay = true;
- }
- t.mainDisplay.gotoAndStop("blank");
- t.mainDisplay.promptHelpMC.gotoAndStop("blank");
- t.gameOver.gotoAndStop("blank");
- };
-